package com.zb.service.impl;

import com.zb.entity.SelectVo;
import com.zb.mapper.ZjLogisticsMapper;
import com.zb.result.PageUtil;
import com.zb.service.ZjLogisticsService;
import com.zb.vo.LogisticsVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author WEN
 * @Date 2024/1/11 0011
 **/
@Service
public class ZjLogisticsServiceImpl implements ZjLogisticsService {
    @Resource
    private ZjLogisticsMapper logisticsMapper;

    // 获取物流下拉列表
    @Override
    public Map<String, Object> getLogisticsSelectList(SelectVo selectVo) {
        PageUtil.setSelectPageLimit(selectVo);
        List<LogisticsVo> voList = logisticsMapper.getLogisticsSelectList(selectVo);
        return PageUtil.pageList(selectVo.getPage(), selectVo.getLimit(), logisticsMapper.getLogisticsSelectListCount(selectVo), voList);
    }
}
